
<%@page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>

<c:url var="urlIncluir" value="/pessoa/salvar" />

<!-- Begin page content -->
<div class="container">
	<div class="page-header">
		<h3>Pessoa - Gestão</h3>
	</div>
	<div class="panel panel-info">
		<div class="panel-heading">
			<h6 class="panel-title">Filtro Pesquisa</h6>
		</div>

		<div class="divSeparador2">

			<form method="GET" action="${urlIncluir}" id="form-incluir"></form>

			<form:form method="POST" class="form-horizontal" role="form"
				action="${urlPesquisar}">
				<div class="form-group">
					<div class="form-group">
						<label for="inputNome" class="col-lg-1 control-label">Nome</label>
						<div class="col-lg-6">
							<input type="text" class="form-control" id="inputNome"
								placeholder="Digite o nome" name="descricao" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-1 control-label"></label>
						<div class="col-lg-6">
							<button type="submit" class="btn btn-success"
								id="btnPesquisarPessoaPorNome">Pesquisar</button>
							&nbsp; <a href="#" id="btn-incluir" class="btn btn-primary">Incluir</a>
						</div>
					</div>
				</div>
			</form:form>

			<div class="alert alert-danger" id="painelErro">
				<span><strong>Erro:</strong><span id="mensagemErro"></span> </span>
			</div>
		</div>
	</div>
	<div id="divList">
		<tiles:insertAttribute name="list" />
	</div>
</div>